<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:checkbox label="FEFYM" labelposition="left" id="fefym" name="advancedfinalstudyreports.fefym" value="%{advancedfinalstudyreports.fefym}" onchange="checkFefym(this)"/>
<s:textfield label="Report" name="advancedfinalstudyreports.report" id="report" value="%{advancedfinalstudyreports.report}"  />

<s:hidden  name="advancedfinalstudyreports.deadline" id="altdeadline" value="%{advancedfinalstudyreports.deadline}"/>
<s:textfield label="Deadline" id="deadline" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.dateSentToSite" id="altdateSentToSite" value="%{advancedfinalstudyreports.dateSentToSite}"/>
<s:textfield label="Date Sent to Site" id="dateSentToSite" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.dateReceivedBms" id="altdateReceivedBms" value="%{advancedfinalstudyreports.dateReceivedBms}"/>
<s:textfield label="Date Received at BMS" id="dateReceivedBms" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.submissionExternalEc" id="altsubmissionExternalEc" value="%{advancedfinalstudyreports.submissionExternalEc}"/>
<s:textfield label="Submission External EC"   id="submissionExternalEc"  cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.receivedExternalEc" id="altreceivedExternalEc" value="%{advancedfinalstudyreports.receivedExternalEc}"/>
<s:textfield label="Received by External EC (stamped)" id="receivedExternalEc" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.submissionLocalEc" id="altsubmissionLocalEc" value="%{advancedfinalstudyreports.submissionLocalEc}"/>
<s:textfield label="Submission to Local EC (stamped)"  id="submissionLocalEc" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.submissionTeachingC" id="altsubmissionTeachingC" value="%{advancedfinalstudyreports.submissionTeachingC}"/>
<s:textfield label="Submission to Teaching Committee" id="submissionTeachingC" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.receivedTeachingC" id="altreceivedTeachingC" value="%{advancedfinalstudyreports.receivedTeachingC}"/>
<s:textfield label="Received Teaching Committee" id="receivedTeachingC" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.submissionCcis" id="altsubmissionCcis" value="%{advancedfinalstudyreports.submissionCcis}"/>
<s:textfield label="Submission to CCIS" id="submissionCcis" cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.formCompleto" id="altformCompleto" value="%{advancedfinalstudyreports.formCompleto}"/>
<s:textfield label="Form completo para enviar a ANMAT y para cierre Hoja firmada por PI" id="formCompleto"  cssClass="datepicker"/>

<s:hidden  name="advancedfinalstudyreports.submissionMoh" id="altsubmissionMoh" value="%{advancedfinalstudyreports.submissionMoh}"/>
<s:textfield label="Submission MOH"  id="submissionMoh" cssClass="datepicker"/>

<s:select label="Scope" name="advancedfinalstudyreports.scope" id="scope"  value="%{advancedfinalstudyreports.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="advancedfinalstudyreportsSave" action="advancedfinalstudyreportsSave" onclick="setEmptyDates;validate();beforeSave(); $('#fefym').removeAttr('disabled');" theme="simple" />
    </td>
</tr>
<s:if test="advancedfinalstudyreports.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="advancedfinalstudyreportsClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="advancedfinalstudyreports.id" value="%{advancedfinalstudyreports.id}"/>

<script>
    inicializarTodaFecha();
</script>

<s:if test="advancedfinalstudyreports.fefym == true">
    <script type="text/javascript">
        $('#fefym')[0].onchange();
        $('#fefym').attr('disabled', 'disabled');
    </script>
</s:if>

<s:if test="advancedfinalstudyreports.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>